<?php
	header('content-type:text/html;charset=utf-8'); 
	//echo "Start".date("Y-m-j H:i:s",time());
	$del_id=$_GET["del_id"];
	$Up_Qty=$_GET["Up_Qty"];
	//Up_Qty
	echo $del_id."<br/>";
	echo $Up_Qty."<br/>";
	
	$conn=mysql_connect("127.0.0.1:3306","root","tdled2018");
	//echo "conn".date("Y-m-j H:i:s",time());
	if (!$conn){
		die('Could not connect: ' . mysql_error());
	}
	
	mysql_select_db("chipdb", $conn);
	//echo "Selectdb".date("Y-m-j H:i:s",time());
	mysql_query("set character set 'utf8'");//读库 
	
	mysql_query("set names 'utf8'");//写库 
	
	$SQL = "
	UPDATE 
		`chipsm` 
	SET
		`QTY` = ".$Up_Qty."
	WHERE `chipsm`.`FK` = ".$del_id
	;
	
	echo $SQL;
	
	mysql_query($SQL);
	//echo "query".date("Y-m-j H:i:s",time());
	mysql_close($conn);
	//echo "Endph".date("Y-m-j H:i:s",time());
?>